package org.yu.register.item;

import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.inventory.MenuType;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.items.CapabilityItemHandler;
import org.jetbrains.annotations.Nullable;
import org.yu.api.register.LazyItemMenu;

public class SilkBagMenu extends LazyItemMenu {
    public SilkBagMenu(@Nullable MenuType<?> pMenuType, int pContainerId, Inventory playerInv, FriendlyByteBuf extraData) {
        super(pMenuType, pContainerId, playerInv, extraData);
        layoutPlayerInventorySlots(9,85);
        itemStack.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
                .ifPresent(iItemHandler -> {
                    addSlotBox(iItemHandler,0,63,16,3,18,3,18);
                });
    }

}
